import load

all={}

for i in range(1, load.allNum):
    year=load.getDateList(i)
    year=year[2]
    if not year in all.keys():
        all[year]=0
    all[year]+=1

for i,j in all.items():
    print(i,j)